import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:"/",
      name:"weatherHome",
      component: () => import("@/views/weatherHome.vue")
    },
    {
      path: '/weather/:adecode',
      name: 'cityHome',
      component: () => import('@/views/cityHome.vue')
    }
  ]
})

export default router
